package com.qf.wangqing.sportsnews.bean;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2016/12/15.
 */

public class FragmentCornpetitionHotData {
    private List<FragmentCornpetitionHotContestList> contest_list ;

    private String end_time;

    private String start_time;

    private int contest_ing_num;
    public String getStartTime(){
        String st=start_time.substring(0,3);
        if(st.equals("Sun")){
            st="周日";
        }else{
            if(st.equals("Sat")){
                st="周六";
            }else {
                if(st.equals("Mon")){
                    st="周一";
                }else{
                    if(st.equals("Fri")){
                        st="周五";
                    }else{
                        if(st.equals("Tue")){
                            st="周二";
                        }else{
                            if(st.equals("Wed")){
                                st="周三";
                            }else{if(st.equals("Thu")){
                                st="周四";
                            }}
                        }
                    }
                }
            }
        }
        String str=start_time.substring(4,7);
        if(str.equals("Dec")){
            str="12";
        }
        String string=start_time.substring(8,10);
        Date date=new Date();
        SimpleDateFormat dateFormat=new SimpleDateFormat("dd");
        String datas=dateFormat.format(date);
        String strings=null;
        if(datas.equals(""+string)){
            strings="(今天)";
        }else{
            strings="";
        }
    String time=str+"月"+string+"日"+st+strings;

        return time ;
    }
                 //CornpetitionContestEntity
    public List<FragmentCornpetitionHotContestList> getContest_list() {
        return contest_list;
    }

    public void setContest_list(List<FragmentCornpetitionHotContestList> contest_list) {
        this.contest_list = contest_list;
    }

    public String getEnd_time() {
        return end_time;
    }

    public void setEnd_time(String end_time) {
        this.end_time = end_time;
    }

    public String getStart_time() {
        return start_time;
    }

    public void setStart_time(String start_time) {
        this.start_time = start_time;
    }

    public int getContest_ing_num() {
        return contest_ing_num;
    }

    public void setContest_ing_num(int contest_ing_num) {
        this.contest_ing_num = contest_ing_num;
    }
}

